home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / mysql-test / t / rpl000007.test < prev    next >
Encoding:
Text File  |  2003-01-21  |  669 b   |  27 lines  |  [TEXT/ttxt]

  1. #this one assumes we are ignoring updates on table foo, but doing
  2. #the ones on bar
  3. source include/master-slave.inc;
  4. connection slave;
  5. use test;
  6. drop table if exists foo;
  7. create table foo (n int);
  8. insert into foo values(4);
  9. connection master;
  10. use test;
  11. drop table if exists foo;
  12. create table foo (s char(20));
  13. load data infile '../../std_data/words.dat' into table foo;
  14. insert into foo values('five');
  15. drop table if exists bar;
  16. create table bar (m int);
  17. insert into bar values(15);
  18. save_master_pos;
  19. connection slave;
  20. sync_with_master;
  21. select foo.n,bar.m from foo,bar;
  22. connection master;
  23. drop table if exists bar,foo;
  24. save_master_pos;
  25. connection slave;
  26. sync_with_master;
  27.